# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=atkmm2.36
pkgver=2.36.3
pkgrel=2
pkgdesc="C++ bindings for atk"
#options="!check" # No testsuite
url="https://www.gtkmm.org/en/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="at-spi2-core-dev glibmm2.68-dev libsigc++3-dev meson m4 doxygen graphviz"
subpackages="$pkgname-devhelp $pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/atkmm/${pkgver%.*}/atkmm-$pkgver.tar.xz"
builddir="$srcdir/atkmm-$pkgver"

replaces="gtkmm"

build() {
	abuild-meson -Dbuild-documentation=true . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

dev() {
	default_dev
	amove usr/lib/'*'/proc/m4/
}

sha512sums="
2c2513b5c5fd7a5c9392727325c7551c766d4d51b8089fbea7e8043cde97d07c9b1f98a4a693f30835e4366e9236e28e092c2480a78415d77c5cb72e9432344f  atkmm-2.36.3.tar.xz
"
